<template>
  <div class="table-box card">
    <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
      <el-tab-pane label="客户归属设置" name="one">
        <customerAttribution v-if="activeName=='one'"></customerAttribution>
      </el-tab-pane>
      <el-tab-pane label="客户等级设置" name="two">
        <customerTier v-if="activeName=='two'"></customerTier>
      </el-tab-pane>
      <el-tab-pane label="资源领取设置" name="three">

        <resourceClaiming v-if="activeName=='three'"></resourceClaiming>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script lang="ts" setup>
import {ref} from 'vue'
import type {TabsPaneContext} from 'element-plus'
// 客户归属设置
import customerAttribution from './model/customerAttribution/index.vue'

// 客户等级设置
import customerTier from './model/customerTier/index.vue'

// 资源领取设置
import resourceClaiming from './model/resourceClaiming/index.vue'

const activeName = ref('three')

const handleClick = (tab: TabsPaneContext, event: Event) => {
  console.log(tab, event)
}
</script>

<style lang="scss" scoped>

</style>
